package be.fomp.jeve.application.data.standard.portrait;

import java.awt.Image;

import be.fomp.jeve.application.data.standard.Portrait;
import be.fomp.jeve.core.exceptions.JEveException;

public class PortraitImpl implements Portrait {
	static final long serialVersionUID = 1L;
	
	private Image portrait;
	private Integer characterID;
	
	@SuppressWarnings("unchecked")
	public PortraitImpl(Image portrait, Integer characterID) throws JEveException{
		this.portrait = portrait;
		this.characterID = characterID;
	}
	
	public Image getPortrait() {
		return this.portrait;
	}
	
	public Integer getCharacterId(){
		return this.characterID;
	}
	
	//No read/Write Object. When caching, the image is stored directly with name = <characterId>.jpg
}
